package com.xsq.newmall01.Dao;

import org.springframework.stereotype.Repository;

@Repository
public class MerchantUser {
    private int id;
    private String username;
    private String password;
    private String shopname;
    private int userkind;
    private String address;
    private String shop_desc;
    private long phone;
    private int status;
    private String contact_person;

    public MerchantUser() {
    }

    public MerchantUser(int id, String username, String password, String shopname, int userkind, String address, String shop_desc ,long phone, int status, String contact_person) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.shopname = shopname;
        this.userkind = userkind;
        this.address = address;
        this.shop_desc = shop_desc;
        this.phone = phone;
        this.status = status;
        this.contact_person = contact_person;
    }
    public MerchantUser(String username, String password) {
        this.username = username;
        this.password = password;
    }
    public MerchantUser(int id){
        this.id = id;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return shopname
     */
    public String getShopname() {
        return shopname;
    }

    /**
     * 设置
     * @param shopname
     */
    public void setShopname(String shopname) {
        this.shopname = shopname;
    }

    /**
     * 获取
     * @return userkind
     */
    public int getUserkind() {
        return userkind;
    }

    /**
     * 设置
     * @param userkind
     */
    public void setUserkind(int userkind) {
        this.userkind = userkind;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return shop_desc
     */
    public String getShop_desc() {
        return shop_desc;
    }

    /**
     * 设置
     * @param shop_desc
     */
    public void setShop_desc(String shop_desc) {
        this.shop_desc = shop_desc;
    }

    /**
     * 获取
     * @return phone
     */
    public long getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(long phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return status
     */
    public int getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(int status) {
        this.status = status;
    }

    /**
     * 获取
     * @return contact_person
     */
    public String getContact_person() {
        return contact_person;
    }

    /**
     * 设置
     * @param contact_person
     */
    public void setContact_person(String contact_person) {
        this.contact_person = contact_person;
    }

    public String toString() {
        return "MerchantUser{id = " + id + ", username = " + username + ", password = " + password + ", shopname = " + shopname + ", userkind = " + userkind + ", address = " + address + ", shop_desc = " + shop_desc + ", phone = " + phone + ", status = " + status + ", contact_person = " + contact_person + "}";
    }
}
